package com.jeasonzhao.report.codes;

import com.jeasonzhao.commons.basic.IntegerPair;

public class DatabaseTypes extends IntegerPair
{
	private static final long serialVersionUID = 1L;
    public static final DatabaseTypes NormalDatabase = new DatabaseTypes(1,"NormalDatabase","normal,db,dbms,jdbc");
    public static final DatabaseTypes ExternalDataSource = new DatabaseTypes(2,"ExternalDataSource","ext,external");
    protected DatabaseTypes(int nId,String strName,String str)
    {
        super(nId,strName,str);
    }

    public static DatabaseTypes fromName(String strName)
    {
        return(DatabaseTypes) IntegerPair.findConstant(DatabaseTypes.class,strName,NormalDatabase);
    }

    public int hashCode()
    {
        return super.hashCode();
    }
}
